package com.azunitech.apm.bundles.shell;

public abstract class BasicCommand<T> implements ICommand<T> 
{
	  protected volatile T m_target;
	  private volatile String m_help;
	  

	  BasicCommand<T> setTarget(T targete) 
	  {
		  m_target = targete;
		  return this;
	  }

	  BasicCommand<T> setHelp(String help) 
	  {
	    m_help = help;
	    return this;
	  }

	  public String toString() 
	  {
		  String result = m_help;
		  if (result == null) 
		  {
			  result = super.toString();
		  }
		  return result;
	  }
}

